package com.sun.mapper;

import com.sun.pojo.FileUpload;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 *
 */
@Mapper
public interface FileUploadMapper {
    List<FileUpload> findAll(int id);

    int saveFile(FileUpload fileUpload);

    int deleteFileById(Integer id);

    FileUpload findFileById(Integer id);

    void updateFileDownCounts(@Param("id") Integer id, @Param("downCounts") int downCounts);
}
